// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from "vue";
import App from "./App";
import store from './store/index.js'
//路由
import router from "./router";
window.router = router;
//-----
import axios from "./utils/axios.js";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
Vue.use(ElementUI);
// 富文本框
import VueQuillEditor from "vue-quill-editor";
import "quill/dist/quill.core.css";
import "quill/dist/quill.snow.css";
import "quill/dist/quill.bubble.css";
Vue.use(VueQuillEditor);
//-------
import global from "./assets/js/global.js"
Vue.prototype.Global = global
// 全局样式
import "../src/assets/css/main.css"
//图片上传封装
import UPImg from "./utils/upImg.js";
// 时间转化
import common from "./assets/js/common";
Vue.use(common);
Vue.prototype.$UPImg = UPImg;
//----
import "./assets/css/iconfont.css";
// 引入icon图标
import "./assets/icon/iconfont.css";

Vue.prototype.$axios = axios;
Vue.config.productionTip = false;

import * as echarts from "echarts";
Vue.prototype.$echarts = echarts;
/* eslint-disable no-new */

// excal
import JsonExcel from "vue-json-excel";
Vue.component("downloadExcel", JsonExcel);

import { VueJsonp } from 'vue-jsonp'
Vue.use(VueJsonp)

import Bus from './utils/bus.js'

// export default new Vue()
Vue.prototype.$bus = Bus
new Vue({
  el: "#app",
  router,
  store,
  components: { App },
  template: "<App/>"
});
